<form action='/search.php'>
<div id='attribute_search' style='background-color:#dddddd; padding:3;'>
<strong style='padding-right:20px;'>Поиск по типу:</strong>
{foreach $attributes as $id => $attr}
	{$attr.name}
	<select style='margin-right:20px;' name='a[{$id}]'>
		<option value=''></option>
		{foreach $attr.values as $val}
			<option value='{$val}' {if $val==$attr.current}selected{/if}>{$val}</option>
		{/foreach}
	</select>
{/foreach}
<button type=submit><strong>Искать</strong></button>
</form>
</div>